<?php

namespace Cephalopod\SSL;

interface MainLogic
{
    public function handleReadEvent(int $id, string &$readBuffer): int;

    public function handleWriteEvent(int $id, string &$writeBuffer);

    public function handleOpenEvent(int $id);

    public function handleCloseEvent(int $id);
}
